<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
require_once 'PrestoClient.php';

$presto = new PrestoClient("http://127.0.0.1","hive", "default");
//Prepare your sql request
try {
    $presto->Query("show tables");
} catch (Exception $e) {
    var_dump($e);
}
//Execute the request and build the result
$presto->WaitQueryExec();
//Get the result
$answer = $presto->GetData();
var_dump($answer);
?>